<html>
<head>

<title>
Computer Assignment No.4       
</title> 

<script>
function changebgcolor() {
window.document.bgColor="teal";
}
function timeout()  {
window.setTimeout("changebgcolor()",3000);
window.open("http://www.yahoo.com");
}
</script>

</head>

<body>
<center><h2>Click the Button<br> to<br> Open Yahoo Window<br> and also to<br> Changes Background Color</h2></center>
<center><input type="submit" value="Click" onClick="timeout()"></center>
</body>
</html>
